<#assign contextPath=springMacroRequestContext.getContextPath() />
<#import "/public/frame/main.html" as frame />
<@frame.head "南航明珠商城-商品列表">
</@frame.head>
<link rel="stylesheet" type="text/css" href="${contextPath}/resources/css/search_table.css" />
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 后台管理中心 <span class="c-gray en">&gt;</span>日志管理 <span class="c-gray en">&gt;</span> 用户行为  <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
<form method="post" name="query_order_form"  id="query_order" action="${contextPath}/behavior_log/query_inte_log" >    
	<input type="hidden" name="page" value="${pagination.pageNo}"  id="page" />                       
    <div class="text-c">
		<table class="table search_table">
			<tr>
                <td>用户名：</td>
                <td>
                    <input id="memberNo" value="${behaviorLogQo.memberNo}" class="input-text radius" placeholder="会员卡号" name="memberNo" type="text"/>
                </td>
                <td>日期范围：</td>
                <td>
                    <input type="text" value="<#if behaviorLogQo.startTime?? >${behaviorLogQo.startTime?date}</#if>" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'datemax\')||\'%y-%M-%d\'}',readOnly : true })" id="datemin" name="startTime" class="input-text Wdate" style="width:45%;"/>
                    -
                    <input type="text" value="<#if behaviorLogQo.endTime?? >${behaviorLogQo.endTime?date}</#if>" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'datemin\')}',maxDate:'%y-%M-%d' ,readOnly : true})" id="datemax" name="endTime" class="input-text Wdate" style="width:45%;"/>
                </td>
                <th>
					<button type="button" class="btn btn-success radius" onclick="search()"><i class="Hui-iconfont">&#xe665;</i>查询</button>
       			 	<button type="button" class="btn btn-success radius" onclick="toEmpty()"><i class="Hui-iconfont">&#xe68f;</i>重置</button>
                </th>
			</tr>
		</table>
	</div>
</form>
    <div class="cl pd-5 bg-1 bk-gray mt-20"> 
    <span class="r">共有数据：<strong> ${pagination.totalCount} </strong> 条</span> </div>
    <table class="table table-border table-bordered table-bg" style="margin-top: -1px;">
        <thead>
        <tr   class="text-c">
            <!-- <th width="45px">
            <input  type="checkbox" id="selectAll" disabled="disabled" onclick="checkAll()"/>
            </th> -->
            <th >用户名</th>
            <th >记录时间</th>
            <th >操作</th>
        </tr>
        </thead>
        <tbody>
       <#if pagination.list?? && (pagination.list?size &gt; 0) >
        <#list pagination.list as recodes> 
        	 <tr class="text-c">
        	   	<td style="width: 30%"> ${recodes.memberNo}  </td>
        	   	<td style="width: 20%">${recodes.time?datetime} </td>
        	   <td style="width: 20%">
        	     <a title="详情" href="javascript:;"    onclick="dio_result(${recodes_index})" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe665;</i></a>
        	       <input type="hidden" value='${recodes.log}' id="sendParamJson${recodes_index}"  >
        	   </td>
        	
        	 </tr>
      </#list></#if>
     </tbody>
    </table>
    <div id="biuuu_city" style="padding-top: 10px;float: right"></div>
</div>
<@frame.end "default">
</@frame.end>

<script type="text/javascript" src="${contextPath}/resources/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/laypage/laypage.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/log/user_log.js"></script>
<script type="text/javascript">
var path="${contextPath}";

laypage({
    cont: 'biuuu_city',//容器。值支持id名、原生dom对象，jquery对象。
    pages: ${pagination.totalPage},//通过后台拿到的总页数
    curr:  ${pagination.pageNo} || 1, //当前页
    skip: true, //是否开启跳页
	first: 1, //将首页显示为数字1,。若不显示，设置false即可
	last: ${pagination.totalPage}, //将尾页显示为总页数。若不显示，设置false即可
    jump: function(obj , first){//触发分页后的回调
        if(!first){ //点击跳页触发函数;当前页为obj.curr
          $(page).val(obj.curr);//获取点击的页码
          $(query_order_form).submit();
        }
    }
})  


 function dio_result(id){
	var jsonsendMsg= $("#sendParamJson"+id).val();
	//var jsonreturnMsg= $("#returnParamJson"+id).val();
		layer.open({
  		  title: '信息',
  		  maxWidth:400,
  		  maxHeight:400,
  		  content: '<div>  <b>返回信息:</b>'  +jsonsendMsg +  '</div>'
  		});    
 }    
 
</script>
</body>

</html>
 
